package com.snimay.app.login.vo;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.snimay.app.user.vo.User;
import com.snimay.heibernate.Annotation.table;

@Entity
@Table(name = "SYS_Login")
@table(query = "id", name = "登录",size=10)
public class Login {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Long id;
	@Column(name = "date_")
	public Date date;
	public String ip;
	@ManyToOne(cascade = CascadeType.ALL)  
	public User user;
}
